package kr.hkit.powerjava.chapter06.work2class;

import java.util.Scanner;

public class IfMain {
	public static void main(String[] args) {
		Scanner input = new Scanner (System.in);
		int n, price = 0;  
		int gubun, hour, age;
		int a,b,c,small = 0;
		
		System.out.println("<1번문제>");
		System.out.print("물건의 개수 입력하라:");
		n = input.nextInt();
		Ifwork01 p = new Ifwork01(n);
		System.out.println(p); 
		
		System.out.println("<2번문제>");
		System.out.print("문자를 입력하시오");
		String str=input.next();
		char ch = str.charAt(0);
		Ifwork02 p2 = new Ifwork02(ch);
		p2.changeA(); 
		
		System.out.println("<3번문제>");
		System.out.print("자유이용권입니까? (맞음:1, 아님:2) ");
		gubun = input.nextInt();
		System.out.print("입장 시간을 입력하시오:(24시표기법으로) ");
		hour = input.nextInt();
		System.out.print("나이를 입력하시오: ");
		age = input.nextInt();
		Ifwork03 p3 = new Ifwork03(gubun, hour, age);
		System.out.println(p3);
		
		System.out.println("<5번문제>");
		System.out.print("3개의 정수를 입력하시오: ");
		a = input.nextInt();
		b = input.nextInt();
		c = input.nextInt();
		Ifwork05 p5= new Ifwork05(a,b,c,small);
		System.out.println(p5);
		
	}
}
